package com.rainbow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rainbow.entity.Salary;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author rainbow
 **/
public interface SalaryMapper extends BaseMapper<Salary> {

    int addSalary(@Param("salary") Salary salary);

    List<Salary> getAllSalary();

    int updateSalary(@Param("salary") Salary salary);

    int deleteSalary(@Param("ids") String[] ids);

    int deleteSalaryByEid(@Param("eid") Long eid);

    int addSidAndEid(@Param("sid") Integer sid, @Param("eid") Long eid);
}
